package com.bolang.onlycode.print;

import net.sf.cglib.proxy.Enhancer;
import net.sf.jasperreports.engine.JasperFillManager;
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
import net.sf.jasperreports.engine.export.JRPdfExporter;
import org.junit.Test;


public class Demo {
    @Test
    public void cc(){
        // 根据jasper文件生成jasperPrint对象
        //jasperPrint = JasperFillManager.fillReport(report, paramerters, new JRBeanCollectionDataSource(reportList));

        // 生成我们的导出类
        JRPdfExporter jrpdfExporter = new JRPdfExporter();

        //设JasperPrint参数
        // jrpdfExporter.setParameter(JRExporterParameter.JASPER_PRINT,jasperPrint);
    }
}
